package com.itheima.day06_Collection;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class CollectionTest {
    public static void main(String[] args) {
        List<Integer> integers = new ArrayList<>();
        Random r = new Random();
        for (int i = 0; i < 10; i++) {
            integers.add(r.nextInt(100,201));
        }
        System.out.println(integers);
        integers.remove(2);
        integers.remove(5);
        integers.remove(6);
        System.out.println(integers);


    }
}
